import { defineConfig } from "vite";
import vue from "@vitejs/plugin-vue";
import viteMock from "vite-easy-mock";
import qiankun from "vite-plugin-qiankun";
import pkg from "./package.json";

// https://vitejs.dev/config/
export default defineConfig({
  plugins: [
    vue(),
    (viteMock as any).default({
      patten: "/mock",
      dir: "/",
    }),
    qiankun(pkg.name, { useDevMode: true }),
  ],
});
